<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改气值')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ncGasLog-edit" th:object="${ncGasLog}">
            <input id="gasLogId" name="gasLogId" th:field="*{gasLogId}"  type="hidden">
			<div class="form-group">
				<label class="col-sm-3 control-label">气表值</label>
				<div class="col-sm-8">
					<input id="gasValue" name="gasValue" th:field="*{gasValue}" class="form-control" type="number" step="2">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">记录时间</label>
				<div class="col-sm-8">
					<input id="createTime"  data-format="yyyy-MM-dd HH:mm:ss" data-type="datetime" required readonly="readonly" name="createTime" th:value="*{#dates.format(createTime, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text" th:class="time-input" >

				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">查表人员</label>
				<div class="col-sm-8">
					<input id="createBy" name="createBy" th:field="*{createBy}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">备注</label>
				<div class="col-sm-8">
					<textarea id="remark" name="remark" th:field="*{remark}"  rows="4" class="form-control" type="text"> </textarea>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/ncGasLog";
		$("#form-ncGasLog-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});

		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-ncGasLog-edit').serialize());
	        }
	    }

		/*function today(){

			var today=new Date();
			var h=today.getFullYear();
			var m=today.getMonth()+1;
			var d=today.getDate();
			return h+"-"+m+"-"+d;
		}
		$('#createTime').val(today());*/
	</script>
</body>
</html>
